-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream, test: add test for _readableState.needReadable #10241
Conversation
a60240d
to
95d505b
Compare
// When the readable event fires, needReadable is reset. | ||
assert.strictEqual(readable._readableState.needReadable, false); | ||
readable.read(); | ||
}), 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the , 1
here is a typo and should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing this out. That's meant for common.mustCall
but I accidentally put it inside the wrong parentheses. The default is 1 anyway so I agree with you, this can be removed.
I have removed the misplaced argument to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ARM failure unrelated, @mscdex you merge or should I merge? |
I discovered that the slowProducer example is not covered accurately(pushing is done synchronously). Can I improve this a little bit more? |
@joyeecheung Sure go ahead. |
0af8783
to
e3c5f63
Compare
e3c5f63
to
9769f34
Compare
Updates pushed, please take a look @mcollina . |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
stream, test
Description of change
Part of #10230 & #8644, increase coverage of the internal state machine of streams.